package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lvhao
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserData extends Model<UserData> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id，自动生成")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 生命
     */
    @ApiModelProperty(value = "生命")
    private Integer hp;

    /**
     * 最大生命
     */
    @ApiModelProperty(value = "最大生命")
    private Integer maxHp;

    /**
     * 饥饿
     */
    @ApiModelProperty(value = "饥饿")
    private Integer hunger;

    /**
     * 口渴
     */
    @ApiModelProperty(value = "口渴")
    private Integer thirsty;

    /**
     * 等级
     */
    @ApiModelProperty(value = "等级")
    private Integer level;

    /**
     * 建议
     */
    @ApiModelProperty(value = "经验")
    private Integer experience;

    /**
     * 体力
     */
    @ApiModelProperty(value = "体力")
    private Integer strength;

    /**
     * 最大体力
     */
    @ApiModelProperty(value = "最大体力")
    private Integer maxStrength;

    /**
     * 点券
     */
    @ApiModelProperty(value = "点券")
    private Integer counting;

    /**
     * 金币
     */
    @ApiModelProperty(value = "金币")
    private Integer gold;

    /**
     * 玩家名称
     */
    @ApiModelProperty(value = "玩家名称")
    private String name;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
